<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="agendaList.title"/></title>
<content tag="heading"><fmt:message key="agendaList.heading"/></content>

<p>
    <form action="showAgendas.html" method="post">
        <label><fmt:message key="agenda.queryMonth"/></label>
        <input type="text" name="month"/>
        <input type="submit" class="button" value="<fmt:message key="button.query"/>" />
     </form>
</p>

<table class="table">
    <tr>
        <td><label><fmt:message key="agenda.date"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td> <label>
                <a href="agendaDetail.html?id=<c:out value="${agenda.id}"/>">
                    <fmt:formatDate value="${agenda.date}" pattern="MM/dd/yyyy"/>
                </a></label>
            </td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.toastMaster"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.toastMaster.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.table_topic_master"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.tableTopicMaster.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td> <label><fmt:message key="agenda.general_evaluator"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.generalEvaluator.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.speaker1"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.speaker1.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.speaker2"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.speaker2.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.speaker3"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.speaker3.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td> <label><fmt:message key="agenda.evaluator1"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.evaluator1.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.evaluator2"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.evaluator2.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.evaluator3"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.evaluator3.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.grammarian"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.grammarian.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.timer"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.timer.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.ah_counter"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.ahCounter.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.vote_counter"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.voteCounter.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.vedio_operator"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.videoOperator.fullName}" /></td>
        </c:forEach>
    </tr>
    <tr>
        <td><label> <fmt:message key="agenda.secretary"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.secretary.fullName}" /></td>
        </c:forEach>
    </tr>



    <tr>
        <td><label> <fmt:message key="agenda.president"/></label></td>
        <c:forEach var="agenda" items="${agendaList}" varStatus="status">
            <td><c:out value="${agenda.president.fullName}" /></td>
        </c:forEach>
    </tr>
</table>
